package com.ssy.lingxi.member.merchant.model.vo.login.request;

import com.ssy.lingxi.member.merchant.api.handler.annotation.PhoneAnno;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 通过短信验证码重设密码接口参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-09-09
 */
public class ResetPasswordBySmsCodeVO implements Serializable {
    private static final long serialVersionUID = -3990671801213588673L;

    /**
     * 短信验证码
     */
    @NotBlank(message = "验证码不能为空")
    private String smsCode;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @PhoneAnno
    private String phone;

    /**
     * 新的密码
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
